package cn.tedu.practice2303.LSS.day0408.HomeWork;

import java.io.*;

public class Test03 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("abc.txt");
		BufferedInputStream bis = new BufferedInputStream(fis);

	    FileOutputStream fos = new FileOutputStream("abc_cp.txt");
	    BufferedOutputStream bos = new BufferedOutputStream(fos);

	int d;
	if((d = bis.read()) != 1) {
		bos.write(d);
	}
	System.out.println("复制完毕!");
    }
}
